﻿<header class="header">
  <div class="left">
    <a href="javascript:history.back();"><i class="fa fa-angle-left"></i></a>
  </div>
  <div class="tit">
    <h2>消息</h2>
  </div>
  <div class="right"></div>
</header>

<div class="news_tab">
  <div class="nt_box">
    <a class="tabitem " ng-class="{false: 'nt_active'}[type]" ng-click="change_type()">留言板</a>
    <a class="tabitem" ng-class="{true: 'nt_active'}[type]" ng-click="change_type()">系统消息</a>
  </div>
</div>

<!--留言板-->
<div class="news_list" ng-hide="type">
  <div class="chat-thread">
    <div ng-class="{true : 'service_pop' , false: 'curtomer_pop clearfix'}[p.mine]" ng-repeat="p in feedbacks">
      <div ng-class="{true : 'header_img' , false: 'header_img  fl'}[p.mine]"><img ng-src="{{p.image && p.image || 'img/default_avatar.png'}}" /></div>
      <div ng-class="{true : 'bkbubble left' , false: 'bkbubble right'}[p.mine]">
        <p>{{p.comment_content}}</p>
      </div>
      <div ng-class="{true : 'fr right_date' , false: 'fl left_date'}[p.mine]">{{p.comment_date}}</div>
    </div>

  </div>
  <div class="send_box">
    <div class="send_item">
      <div class="send_content">
        <div class="sc_box" contenteditable="true" placeholder="留言"></div>
      </div>
      <div class="send_btn" ng-click="feedback()">
        <a>发送</a>
      </div>
    </div>
  </div>
</div>

<!--私信-->
<div class="news_list" ng-show="type">
  <ul class="news_box">
    <li ng-repeat="p in list">
      <div class="news_item">
        <div class="news_img"><img ng-src="{{p.thumb}}" /></div>
        <a href="#/news_detail/{{p.ID}}" class="news_info">
          <h4>{{p.post_title}}</h4>
          <!--<p  ng-bind-html="p.abstraction | trusted"></p>-->
          <span>{{p.post_modified}}</span>
        </a>
      </div>


    </li>

  </ul>
</div>
